package com.weiqiao.api.repository.impl;

import com.weiqiao.api.repository.ILabelShelfApiRepository;
import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/27 16:45
 */
@Repository("LabelShelfApiRepositoryImpl")
public class LabelShelfApiRepositoryImpl extends BaseMongoDaoImpl implements ILabelShelfApiRepository {
    private static final String CONNECTION_NAME = "label_shelf_";
    @Override
    public List<String> getLabelShelfList(int companyId, Bson filter) {
        return super.findFilter(CONNECTION_NAME + companyId, filter);
    }
}
